<%--
  Created by IntelliJ IDEA.
  User: 86198
  Date: 2022/5/27
  Time: 21:02
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c"  uri="http://java.sun.com/jsp/jstl/core"%>
<html>
<head>
    <title>Title</title>
    <style>
        table{
            border: 1px solid lightblue;
            width: 1000px;
            margin: 10px auto;
            text-align: center;
            border-collapse: collapse;
        }
        tr{
            border: 1px solid lightblue;
            height:50px;
            text-align: center;
        }
        td,th{
            border: 1px solid lightblue;
        }
        h2{
            text-align:center;
        }
    </style>
</head>
<body>
<h2 align="center">人员档案系统</h2>
<h4>欢迎【${username}】登录~~~</h4>
<table>
    <tr>
        <td>编号</td>
        <td>姓名</td>
        <td>生日</td>
        <td>性别</td>
        <td>职业</td>
        <td>住所</td>
        <td>电话</td>
        <td>操作</td>
    </tr>
    <c:forEach items="${ArchivesList}" var="Archives">
    <tr>
        <td>${Archives.id}</td>
        <td>${Archives.username}</td>
        <td>${Archives.birthday}</td>
        <td>${Archives.gender}</td>
        <td>${Archives.occupation}</td>
        <td>${Archives.abode}</td>
        <td>${Archives.phoneNumber}</td>
        <td>
        <a href="upDateArchives.jsp?ArchivesID=${Archives.id}"  onclick="return confirm('确定修改？')">修改</a>
        <a href="show?method=insertArchives&ArchivesID=${Archives.id}">明细</a>
        </td>
    </tr>
    </c:forEach>
    <tr>
    <td colspan="8">
        <a href="<c:url value='show?method=showList&pageIndex=1'></c:url>">首页</a>
        <c:if test="${page.page_Index>1}">
        <a href="<c:url value='show?method=showList&pageIndex=${page.page_Index-1}'></c:url>">上一页</a>
        </c:if>
        <c:if test="${page.page_Index < page.page_Count}">
        <a href="<c:url value='show?method=showList&pageIndex=${page.page_Index+1}'></c:url>">下一页</a>
        </c:if>
        <c:if test="${page.page_Index == page.page_Count}">
        <a>下一页</a>
        </c:if>
        <a href="<c:url value='show?method=showList&pageIndex=${page.page_Count}'></c:url>">尾页</a>
    </td>
    </tr>
</table>


</body>
</html>
